//
//  SSWBStatusPic.swift
//  shanshanlol微博
//
//  Created by 叶竞泽 on 2017/1/24.
//  Copyright © 2017年 JingZe. All rights reserved.
//

import UIKit

/// 微博配图模型
class SSWBStatusPic: NSObject {

    /// 缩略图地址
    var thumbnail_pic: String? {
        didSet {
            // 设置中等尺寸图片
            middlePic = thumbnail_pic?.replacingOccurrences(of: "/thumbnail/", with: "/bmiddle/")
            // 设置高清尺寸图片
            largePic = thumbnail_pic?.replacingOccurrences(of: "/thumbnail/", with: "/large/")
            // 更改缩略图地址
            thumbnail_pic = thumbnail_pic?.replacingOccurrences(of: "/thumbnail/", with: "/wap360/")
        }
    }
    
    /// 中等尺寸图片
    var middlePic: String?
    
    /// 高清图
    var largePic: String?
    
    override var description: String {
        return yy_modelDescription()
    }
}
